package com.joysuch.wwyt.bp.mapper;

import com.joysuch.wwyt.bp.entity.BpInvestigateTaskSummary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author heqf
 * @description 汇总统计数据整理
 * @since 2023-07-18 10:29:23
 */
@Mapper
public interface BpSummaryStatMapper {
    BpInvestigateTaskSummary getFirstSummary();
    long hisTaskCount(@Param("start") Date start, @Param("end") Date end);
    long hisTaskDoneCount(@Param("start") Date start, @Param("end") Date end);
    long hisExceptionCount(@Param("start") Date start, @Param("end") Date end);

    long runTaskCount(@Param("start") Date start, @Param("end") Date end);
    long runTaskDoneCount(@Param("start") Date start, @Param("end") Date end);
    long runExceptionCount(@Param("start") Date start, @Param("end") Date end);

    long planndSummaryHis(@Param("start") Date start, @Param("end") Date end);
    long planndSummary(@Param("start") Date start, @Param("end") Date end);
}
